/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package wo.cput.pattern.mediator;

/**
 *
 * @author Administrator
 */
public class ASale {

    Mediator med;
    double dollar;

    public ASale(Mediator med, double dollar) {
        this.med = med;
        this.dollar = dollar;
        this.med.onlineASale(this);
    }

    public boolean isBidAccepted(double bidAmount) {
        if (bidAmount >= dollar) {
            System.out.println("bid accepted" + bidAmount);
            return true;
        }
        else {
            System.out.println("bid decline" + bidAmount);
            return false;
        }
    }
}
